﻿using System;
using Obsidian.Edm;
using Obsidian.Utils;
using [#ModelBaseNS#]

/*============================
 * @author [#AUTHOR#]
 * @created [#CREATED#]
 * @desc 分类类型 查询实体类
* ============================ */

namespace [#ModelNS#]
{
	/// <summary>
	/// [#TbDescir#] 查询实体
	/// </summary>
	public class [#ClsName#]Qry : QueryInfo, ITreeNodeInfo
	{
		public [#ClsName#]Qry()
		{
			base.InitModel(new IModelField[] {
                categoryIds = new LongListField(this, null, "categoryIds"),
                parentId = new LongField(this, null, "parentId"),
                getChildren = new BoolField(this, null, "getChildren", false),
                enabled = new BoolField(this, null, "enabled"),
                maxDepth = new IntField(this, null, "maxDepth"),
                paths = new StringListField(this)
            });
		}

		private LongListField categoryIds;
        private LongField parentId;
        private StringListField paths;
        private BoolField getChildren;
        private BoolField enabled;
        private IntField maxDepth;

        public LongListField CategoryIds { get { return categoryIds; } }
        public LongField ParentId { get { return parentId; } }
        public BoolField GetChildren { get { return getChildren; } }
        public BoolField Enabled { get { return enabled; } }
        public IntField MaxDepth { get { return maxDepth; } }
		
        public StringListField Paths { get { return paths; } }
        public LongListField NodeIds { get { return categoryIds; } }
	}
}